package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"varchar(30)"`
	Password string `gorm:"varchar(32)"`
}
type Role struct {
	gorm.Model
	Role string `gorm:"varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"int"`
	Rid int `gorm:"int"`
}
type Node struct {
	gorm.Model
	Node string `gorm:"varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"int"`
	Nid int `gorm:"int"`
}
type Car struct {
	gorm.Model
	CarName  string `gorm:"varchar(30)"`
	CarPrice int    `gorm:"int"`
}
type CarOrder struct {
	gorm.Model
	OrderCode string `gorm:"varchar(30)"`
	Uid       int    `gorm:"int"`
	Cid       int    `gorm:"int"`
}
type CarOrderList struct {
	OrderId   int
	OrderCode string
	Username  string
	CarName   string
	CarPrice  int
}
